package com.njlime.cms.repository.app;

import com.njlime.cms.entities.Live;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Map;

/**
 * Created by Dean on 2017-10-10.
 */
public interface AppLiveDao extends JpaRepository<Live, Integer>,JpaSpecificationExecutor<Live> {
    Map<String, Object> get(int id);
    PageBean list(PageBean pageBean, Live tLive);
    void updateCommentMum(Integer id,int num);
    void updateViewCount(Integer id);
}
